<?php
App::uses('AppModel', 'Model');
/**
 * Image Model
 *
 * @property Gallery $Gallery
 */
class Image extends AppModel {


	//The Associations below have been created with all possible keys, those that are not needed can be removed

/**
 * belongsTo associations
 *
 * @var array
 */
	public $belongsTo = array(
		'Gallery' => array(
			'className' => 'Gallery',
			'foreignKey' => 'gallery_id',
			'conditions' => '',
			'fields' => '',
			'order' => ''
		)
	);
      public $actsAs = array(
        'MeioUpload.MeioUpload' => array(
            'filename' => array(
                'dir' => 'img{DS}uploads{DS}images',
                'allowedMime' => array('image/jpeg', 'image/pjpeg', 'image/png'),
                'allowedExt' => array('.jpg', '.jpeg', '.png'),
                'zoomCrop' => false
                /*'thumbsizes' => array(
                        'normal' => array('width' => 400, 'height' => 300)
                    )*/
            )
        )
    );
}
